/**
 * 减号图标
 * @param ratio 画布大小比例
 * @param color 颜色字符串
 * @returns 数据地址
 */
const MinusImage = (radio?: number, color?: string): string => {
    const r = radio || 2;
    const col = color || '#ffffff';
    const canvas = document.createElement('canvas');
    canvas.width = canvas.height = 20 * r;
    const ctx = canvas.getContext('2d')!;
    ctx.miterLimit = 4;
    ctx.strokeStyle = col;
    ctx.lineWidth = 2 * r;
    ctx.lineCap = 'round';
    ctx.beginPath();
    ctx.moveTo(3 * r, 10 * r);
    ctx.lineTo(17 * r, 10 * r);
    ctx.stroke();
    ctx.closePath();
    return canvas.toDataURL('image/png');
};


export { MinusImage };